
<link rel="stylesheet" href="css/another.css">
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>


<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <title>Login</title>
    </head>
    <body>
    
    <center>
            <a href="login.jsp">
                <img src="gambar/head2.PNG" id="logo" alt="logo">
               
            </a>
    </center>


<sql:query var="categories" dataSource="jdbc/siap2">
    SELECT * FROM category
</sql:query>
   
<div>
    <c:forEach var="category" items="${categories}">
        <div class="categoryBox">
            <a href="<c:url value='category?${category.id}'/>">
                <span class="categoryLabel"></span>
                <span class="categoryLabelText"><fmt:message key='${category.name}'/></span>

                <img src="${initParam.categoryImagePath}${category.id}.jpg"
                     alt="<fmt:message key='${category.id}'/>" class="categoryImage">
            </a>
       
        </div>
                    </c:forEach>

            
  

</body>
</html>